package com.smart.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "navigation")
public class Navigation {
    /**
     * 主键
     */
    @TableId(value = "nav_id", type = IdType.INPUT)
    private Integer navId;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 跳转链接
     */
    @TableField(value = "link_url")
    private String linkUrl;

    /**
     * 0 表示禁用, 1 表示启用
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 排序字段
     */
    @TableField(value = "sort")
    private Integer sort;

    public static final String COL_NAV_ID = "nav_id";

    public static final String COL_NAME = "name";

    public static final String COL_LINK_URL = "link_url";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_SORT = "sort";
}